package com.yoomiito.app.ui.my.psw;

import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.yoomiito.app.Constant;
import com.yoomiito.app.R;
import com.yoomiito.app.base.BaseLazyFragment;

import butterknife.BindView;
import butterknife.OnClick;

public class ChangeResultFragment extends BaseLazyFragment {

    @BindView(R.id.fm_change_result_iv)
    ImageView iv;
    @BindView(R.id.fm_change_result_content)
    TextView mTextView;
    @BindView(R.id.fm_change_result_btn)
    TextView mButton;

    @Override
    public int getLayoutId() {
        return R.layout.fm_chang_result;
    }

    @Override
    public Object newP() {
        return null;
    }

    @Override
    public void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        String msg = getArguments().getString(Constant.MSG);
        if (!TextUtils.isEmpty(msg)){
            mTextView.setText(msg);
        }
    }

    @OnClick({R.id.fm_change_result_btn})
    public void onClick(View view){
        if (R.id.fm_change_result_btn == view.getId()){
            context.finish();
        }
    }
}
